package br.com.empresa.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import javax.swing.JOptionPane;

public class FabricaConexao {
	private static final String USUARIO = "root";
	private static final String SENHA = "80250291";
	private static final String ST_CONEXAO = "jdbc:mysql://localhost:3306/projeto_final";
	
	public static Connection getConexao() throws SQLException{
		try {
			return DriverManager.getConnection(ST_CONEXAO, USUARIO, SENHA);
		} catch (SQLException e) {
			throw new SQLException(e.getMessage());
		}	
	}
	
	
	
}
